Test Series - java script

Test Number 55/92

Q: When does WebPageTest become necessary?
A. To run any common website
B. To run private websites
C. To run QA testing
D. To run media testing
Solution: If you want to run tests on web sites that are not publicly available—like a QA or development environment, or if you can only have your test results stored on your own servers because of legal or other reasons, then installing your own private instance of WebPagetest is the way to go.
Q: What is the purpose of the Auth tab in the testing platform?
A. To specify credentials
B. To authorize a page
C. To run the test
D. To run user access
Solution: In the Auth tab you can specify credentials to use if the web site uses HTTP authentication for access.
Q: What is the purpose of the Script tab?
A. To edit the coding
B. To run on multiple servers
C. To run more complex tests
D. To run media
Solution: The Script tab can be used to run more complex tests that involve multiple steps including navigate to multiple URLs, etc.
Q: Which is the command that is used to spoof the client user agent?
A. setUserAgent
B. spoofAgent
C. spoofClientUserAgent
D. spoofUser
Solution: The setUserAgent spoofs the client user agent.
Q: What is the purpose of the Block tab?
A. To block the response
B. To block the request
C. To block the mouse pointer
D. To block the cursor
Solution: The Block tab allows us to block content coming in our request.
Q: What is the purpose of the Video tab?
A. To take video of the page
B. To capture screenshots of the test only
C. To take video of the test
D. To capture screenshots of the page
Solution: The Video tab allows you to capture screenshots of your page as it loads and views them as a video.
Q: What is the task of the Advanced Panel?
A. Test stop running
B. Loading the pages
C. Skewing the results
D. Loading the server
Solution: In the Advanced panel, you can have the test stop running at document completion. That will tell us when the document.onload event is fired, instead of when all assets on the page are loaded.
Q: What is the vulnerability of XHR communications?
A. There is no vulnerability
B. Skewing the results
C. Registration and Skewing the results
D. Registering the test results
Solution: XMLHttpRequest (XHR) is an API in the form of an object whose methods transfer data between a web browser and a web server. XHR communications that may happen after page load could register as new activity and skew the test results.
Q: Which of the following methods adds and connects the point to the cubic bezier curve?
A. bezierConnect()
B. bezierCurveTo()
C. Connectbezier()
D. bezierTo()
Solution: A cubic bezier curve requires three points. The first two points are control points that are used in the cubic Bézier calculation and the last point is the ending point for the curve. This method adds a new point P to the subpath and connects it to the current point with a cubic Bezier curve.
Q: Which of the following methods adds an arc to the current subpath?
A. bezierCurveTo()
B. arcTo()
C. arc()
D. Curve()
Solution: The arc() method adds an arc to the current subpath. The arc() function is fined in the canvas method.

You Have Score    /10